<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>

<html>
  <head>
  	<title>Add New Web Comic</title>
  </head>
  
  <body>

  <form action="/addcomic.html" method="post">
  	<div><label for='name'>Name:</label><input type='text' name='name' id='name' value='XKCD' /></div>
    <div><label for='url'>URL:</label><input type='text' name='url' id='url' value='http://www.xkcd.com' /></div>
    <div><label for='favicon'>Favicon:</label><input type='text' name='favicon' id='favicon' value='http://www.xkcd.com/favicon.ico' /></div>
    <div><label for='nextButtonRegex'>Next Button Regex:</label><input type='text' name='nextButtonRegex' id='nextButtonRegex' value='<li><a href="(.*)" accesskey="n">Next &gt;</a></li>' /></div>
    <div><label for='nameRegex'>Comic Name Regex:</label><input type='text' name='nameRegex' id='nameRegex' value='<h1>(.*)</h1><br/>' /></div>
    <div><label for='imageRegex'>Comic Image Regex:</label><input type='text' name='imageRegex' id='imageRegex' value='<img src="(.*)" title="' /></div>
    <div><label for='altTextRegex'>Comic Alt Text Regex:</label><input type='text' name='altTextRegex' id='altTextRegex' value='title="(.*)" alt="' /></div>
    <div><label for='latestComic'>First Comic URL:</label><input type='text' name='latestComic' id='latestComic' value='http://xkcd.com/1/' /></div>
    <div><input type="submit" value="Add New Comic" /></div>
  </form>

  </body>
</html>